<?

class MySitesAjax
{
	public $ZoneType='ajax';
	function run()
	{
		global $riaZoneType;
		$riaZoneType = $this->ZoneType;
		
		session_start();

		# Preparsing
		$RewriteManager = new RewriteManager();
		$RewriteManager->run();
        
        
		$class='Dialog_'.$RewriteManager->target;
        $cp = new cpaint();
        $dialog =new $class;
        $dialog->ajax=$cp;
		$dialog->RewriteManager = $RewriteManager; 
        $dialog->handleRequest();
		
		$cp->start();
		$cp->return_data();
		session_write_close();
	}

}
?>